public class Test2 {
    public static void main(String[] args) {

    }
    public void func() {
        while (true) {
            if(  ) {

            }
            //拿到锁
            break;
        }
    }
}
